package com.aaa.operations.feign;

import com.aaa.common.entity.ResultData;
import com.aaa.common.entity.Room;
import org.springframework.stereotype.Component;

/**
 * @author ：陈路遥
 * @date ：Created in 2020/7/25 16:02
 * @description：
 * @modified By：
 * @version:
 */
@Component
public class FallBack implements IRoomService {

    @Override
    public ResultData getAllRoom( Integer pageSize,Integer pageNum) {
        return new ResultData(false,"查询出错,出现熔断",null);
    }

    @Override
    public ResultData addRoom(Room room) {
        return new ResultData(false,"添加出错,出现熔断",null);
    }

    @Override
    public ResultData updateRoom(Room room) {
        return new ResultData(false,"修改出错,出现熔断",null);
    }

    @Override
    public ResultData deleteRoom(Room room) {
        return new ResultData(false,"删除出错,出现熔断",null);
    }
}
